from flask import Flask

def create_app():
    app = Flask(__name__, static_folder='../static', static_url_path='/static')
    UPLOAD_FOLDER = './FileRec'
    app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER

    from app.handle.v1 import api
    app.register_blueprint(api, url_prefix='/api/v1')

    from app.handle import api
    app.register_blueprint(api)

    return app
